Average word length |
---|
8.5753 |
word length | percentage |
---|---|
0 | 0.0002 |
1 | 0.0850 |
2 | 0.4468 |
3 | 2.2182 |
4 | 5.3464 |
5 | 9.0272 |
6 | 11.8928 |
7 | 11.9812 |
8 | 13.3073 |
9 | 12.7980 |
10 | 10.7769 |
11 | 8.2029 |
12 | 5.5412 |
13 | 4.3478 |
14 | 3.1808 |
15 | 2.3670 |
16 | 1.7592 |
17 | 1.3021 |
18 | 0.9744 |
19 | 0.7436 |
20 | 0.5841 |
21 | 0.4646 |
22 | 0.3694 |
23 | 0.3002 |
24 | 0.2365 |
25 | 0.1905 |
26 | 0.1472 |
27 | 0.1225 |
28 | 0.1042 |
29 | 0.0877 |
30 | 0.0713 |
In this subsection we ignore the fact that words have different frequencies. So for the average word length, each word is considered equally. For a fixed word length, we count the number of different words having this length.
The plot of the word length against the number of words of this length usually has a clear maximum between 10 and 15. Moreover, with a logarithmic scale of the y-axis, we get a nearly linear part between length 15 and 40.
Average word length is one of the classic parameters for a language.
Counting without multiplicity makes average word length depending on the corpus size. A larger corpus contains more words, and the additional words are usually longer. Hence, average word length should increase with corpus size.
Average word length:
select avg(char_length(word)) from words where w_id>100;;
Data for large table:
SELECT @all:=count(*) from words where w_id>100;
select char_length(word), 100*count(*)/@all from words where w_id>100 group by char_length;
Do we have the linear part between 15 and 40 for (nearly) all languages?
Where does it come from?
Calculate and compare the slope!
3.5.1.2 Words by Length with multiplicity